package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户冻结贡献值明细表
 * </p>
 *
 * @author leehao
 * @since 2019-07-23
 */
public class CFreezeDonateDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer cid;

    /**
     * 关联单号
     */
    private String payCode;

    /**
     * 操作类型
     */
    private Integer typeId;

    /**
     * 本次操作贡献值
     */
    private BigDecimal donate;

    private Date createTime;

    /**
     * 冻结状态 1 冻结中  2  已发放  3  已退回
     */
    private Integer status;

    /**
     * 冻结类型——见FreezeTypeEnums
     */
    private Integer type;

    /**
     * 当type为订单时需要——订单详情id
     */
    private Integer orderDetailId;

    /**
     * 触发人id 只表示用户id
     */
    private Integer targetId;

    /**
     * 描述
     */
    private String remark;

    public CFreezeDonateDetail() {
    }

    public CFreezeDonateDetail(Integer cid, String payCode, Integer typeId,
                               BigDecimal donate, Integer status, Integer type,
                               Integer orderDetailId, String remark) {
        this.cid = cid;
        this.payCode = payCode;
        this.typeId = typeId;
        this.donate = donate;
        this.status = status;
        this.type = type;
        this.orderDetailId = orderDetailId;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public BigDecimal getDonate() {
        return donate;
    }

    public void setDonate(BigDecimal donate) {
        this.donate = donate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Integer orderDetailId) {
        this.orderDetailId = orderDetailId;
    }
    
    public Integer getTargetId() {
		return targetId;
	}

	public void setTargetId(Integer targetId) {
		this.targetId = targetId;
	}

	public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "CFreezeDonateDetail{" +
        "id=" + id +
        ", cid=" + cid +
        ", payCode=" + payCode +
        ", typeId=" + typeId +
        ", donate=" + donate +
        ", createTime=" + createTime +
        ", status=" + status +
        ", type=" + type +
        ", orderDetailId=" + orderDetailId +
        ", targetId=" + targetId +
        ", remark=" + remark +
        "}";
    }
}
